/*****************************************************************//**
 * \file   decoderinterface.h
 * \brief  
 * 
 * 
 * \author shijiaobing
 * \date   October 2023
 *********************************************************************/

#ifndef  _DECODER_BASE_H_
#define  _DECODER_BASE_H_

extern "C" {

#include "libavformat/avformat.h"

}

#include <QString>



class DecoderBase {
public:
	
	 
	void globalInit();

	/**
	 * .
	 * \param $PARAMS url filePath
	 * \return $RETURN
	 */
	virtual bool openVideo(const QString& url);
	
	virtual void start();

	virtual void stop();

	virtual void pause();

	virtual void lastFrame();

	virtual  void nextFrame() = 0;

	virtual void seek(const qint64& pos);


};




#endif // ! _DECODER_BASE_H_
